<?php
  include("db_connect.php");
  include('session.php');
 ?>
<html>
<head>
  <title>Find Your Match, Register now!</title>
  </head>
<body>

<?
if(isset($_REQUEST['name'], $_REQUEST['password'], $_REQUEST['email'])) {
  mysql_query("INSERT INTO users (name, email, password) VALUES ('" . $_REQUEST['name'] . "', '" . $_REQUEST['email'] . "','" . $_REQUEST['password'] . "')");
  echo "<p>Registration complete!</p>";
} else {
?>
  <h1>Register</h1>
  <form action="register.php" method="POST">
    Name: <input type="text" name="name"> <br />
    Password: <input type="password" name="password"><br />
    Email: <input type="text" name="email"><br />
    <input type="submit" value="register" />
  </form>
<? } ?>
  </body>
</html>